<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="layout" content="main" />
	<title>Report List</title>
</head>
<body>
<div class="body">
	<h1>Report List</h1>
	<g:if test="${flash.message}">
		<div class="message">${flash.message}</div>
	</g:if>
	<g:if test="${flash.error}">
		<div class="errors">${flash.error}</div>
	</g:if>
	<div class="list">
		<table>
			<thead>
				<tr>
					<th>Name</th>
					<th>Title</th>
					<th>Author</th>
					<th>Description</th>
				</tr>
			</thead>
			<tbody>
				<g:each var="report" in="${reportList}" status="i">
					<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
						<td><g:link action="run" id="${report.name}">${report.name}</g:link></td>
						<td>${report.title}</td>
						<td>${report.author}</td>
						<td>${report.description}</td>
					</tr>
				</g:each>
			</tbody>
		</table>
	</div>
</div>
</body>
</html>